{% extends "bootstrap/base.html" %}

{% block title %}XJUSEC{% endblock %}

{% block head %}
{{ super() }}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
{% endblock %}

{% block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">XJUSEC</a>
        </div>

        <div class="navbar-collapse collapse">
            {% if current_user.is_authenticated %}
            <ul class="nav navbar-nav">
               <li class="nav-item dropdown">
						<a href="{{ url_for('my_web.web', type='new') }}" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button"
						   aria-haspopup="true" aria-expanded="true">WebBlog</a>
						<div class="dropdown-menu">
							<a class="dropdown-item" href="{{ url_for('my_web.web', type='new') }}">New  Blog<br></a>
							<a class="dropdown-item" href="{{ url_for('my_web.web', type='all') }}">All  Blog<br></a>
                            <a class="dropdown-item" href="{{ url_for('my_web.web', type='reload') }}">Upload Data</a>
						</div>
					</li>
            </ul>
             <ul class="nav navbar-nav">
                <li><a href={{ url_for('my_web.xsser') }}>XSS</a></li>
            </ul>
            
             <ul class="nav navbar-nav">

                <li><a href={{ url_for('my_web.http_method',status="do") }}>HttpMethod</a></li>
             </ul>
                <ul class="nav navbar-nav">
                <li><a href={{ url_for('my_web.Payloads') }}>Payloads</a></li>
             </ul>
             <ul class="nav navbar-nav">
                <li><a href={{ url_for('my_web.sqli') }}>SQLI</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                    <li><a href="{{ url_for('my_web.logout') }}">Log Out</a></li>
            </ul>
            {% else %}
            <ul class="nav navbar-nav navbar-right">
                <li><a href={{  url_for(('my_web.login'))}}>Log In</a></li>
            </ul>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}

{% block content %}
<div class="container">
    {% for message in get_flashed_messages() %}
    <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
    </div>
    {% endfor %}

    {% block page_content %}{% endblock %}
</div>
{% endblock %}

{% block scripts %}
{{ super() }}
{{ moment.include_moment() }}
{% endblock %}